package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 会员DAO
 */
public interface MemberDao {
    Integer todayNewMember();

    Integer thisWeekNewMember();//本周新增会员

    Integer thisMonthNewMember();//本月新增会员

    Integer totalMember();//会员总数


    Integer getMemberReport(String start);

    Integer getMember(@Param("start") String start, @Param("end")String end);



    void insert(Member member);

    Member finByTelephone(String telephone);

    Member findById(Integer memberId);
}
